package com.example.aigc_education.integration.processor.v2.async;

import com.example.aigc_education.integration.emuns.CozeWorkflowTypeV2;
import com.example.aigc_education.integration.processor.v2.CozeAsyncProcessor;
import com.example.aigc_education.integration.request.CozeRequest;
import com.example.aigc_education.integration.request.params.v2.CozeGenQuizzesParam;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * 生成试题异步处理器
 */
@Component
@Slf4j
public class GenQuizzesAsyncProcessor extends CozeAsyncProcessor<CozeGenQuizzesParam> {

    @Override
    public CozeWorkflowTypeV2 workflowType() {
        return CozeWorkflowTypeV2.GEN_QZ;
    }

    @Override
    protected String workflowId() {
        return workflowType().getWorkflowId();
    }


    @Override
    protected boolean isParamValid(CozeRequest<CozeGenQuizzesParam> request) {
        // 参数校验逻辑...
        return true;
    }
}